//
//  Frame.h
//  SenseidIdsSDK
//
//  Created by 吴畏 on 2024/4/3.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, Video_Format) {
	BGRA = 0,
	NV21 = 1
};

typedef NS_ENUM(NSInteger, Senseid_orientation) {
	/** 顺时针 0 度 */
	CLOCKWISE_0,
	/** 顺时针 90 度 */
	CLOCKWISE_90,
	/** 顺时针 180 度 */
	CLOCKWISE_180,
	/** 顺时针 270 度 */
	CLOCKWISE_270
};

@interface Area2d : NSObject

@property (nonatomic, assign) int left;

@property (nonatomic, assign) int top;

@property (nonatomic, assign) int width;

@property (nonatomic, assign) int height;

@end

@interface Frame : NSObject

@property (nonatomic, assign) Video_Format format;

@property (nonatomic, assign) uint8_t *data;

@property (nonatomic, assign) int width;

@property (nonatomic, assign) int height;

@property (nonatomic, assign) int stride;

@property (nonatomic, assign) Senseid_orientation orientation;

@property (nonatomic, assign) BOOL isMirror;

@property (nonatomic, strong) Area2d *targetRestrictArea;

@end



NS_ASSUME_NONNULL_END
